//
//  AccountInfo.m
//  Kids
//
//  Created by LiTengFei on 14/11/26.
//  Copyright (c) 2014年 90's Technology Co.Ltd. All rights reserved.
//

#import "AccountInfo.h"

@implementation AccountInfo
+ (instancetype)shareInstance
{
    static dispatch_once_t onceToken;
    static AccountInfo* info;
    dispatch_once(&onceToken, ^{
        info = [[AccountInfo alloc]init];
    });
    return info;
}

-(void)setPassword:(NSString *)password{
    [[NSUserDefaults standardUserDefaults] setValue:password forKey:@"password"];
}
-(NSString *)password{
 return   [[NSUserDefaults standardUserDefaults] valueForKey:@"password"];
}

-(void)setPhone:(NSString *)phone{
    [[NSUserDefaults standardUserDefaults] setValue:phone forKey:@"phone"];
}
-(NSString *)phone{
    return [[NSUserDefaults standardUserDefaults]valueForKey:@"phone"];
}
@end
